﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyFitness
{
    /// <summary>
    /// Class to override ComboBox Items so both a Text value and a Data value may be saved with an entry.
    /// </summary>
    public class ComboboxItem
    {
        /// <summary>
        /// Constructor to take both text and value items.
        /// </summary>
        /// <param name="text"></param>
        /// <param name="value"></param>
        public ComboboxItem(string text, object value)
        {
            Text = text;
            Value = value;
        }

        #region Accessors
        public string Text { get; set; }
        public object Value { get; set; }
        #endregion

        public override string ToString()
        {
            return Text;
        }
    }
}
